package chuishop.yiqimaicai.service.Impl;

import chuishop.yiqimaicai.mapper.Addgoods_headerMapper;
import chuishop.yiqimaicai.pojo.Addgoods_header;
import chuishop.yiqimaicai.service.Addgoods_headerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
//进货单头
public class Addgoods_headerImpl implements Addgoods_headerService {
    @Autowired
    private Addgoods_headerMapper addgoods_headerMapper;
    @Override
    public List<Addgoods_header> findAllAddgoods_header() {
        return addgoods_headerMapper.findAllAddgoods_header();
    }

    @Override
    public List<Addgoods_header> selectAddgoods_header(String input) {
        return addgoods_headerMapper.selectAddgoods_header(input);
    }

    @Override
    public boolean addAddgoods_header(Addgoods_header addgoods_header) {
        return addgoods_headerMapper.addAddgoods_header(addgoods_header)>0;
    }

    @Override
    public boolean deleteAddgoods_header(String[] ids) {
        return addgoods_headerMapper.deleteAddgoods_header(ids)>0;
    }

    @Override
    public boolean updateAddgoods_header(Addgoods_header addgoods_header) {
        return addgoods_headerMapper.updateAddgoods_header(addgoods_header)>0;
    }
}
